package dao.borrow;

import dao.BaseDao;
import dao.DaoException;
import model.Borrow;
import model.BorrowDetail;

import java.util.ArrayList;

public interface BorrowDao extends BaseDao {

    // 展示读者借阅书籍的情况
    ArrayList<BorrowDetail> showReaderBorrowByPage(int rid, int pageNum, int pageSize) throws DaoException;
    int findReaderBorrowNum(int rid) throws DaoException;

    // 借书
    void borrowBook(Borrow borrow) throws DaoException;
    // 还书
    void returnBook(int rid, int bid) throws DaoException;
}
